﻿namespace Legend.Caching
{
    public interface ICacheFactory
    {
        /// <summary>
        /// Gets the cache by the given name.
        /// </summary>
        /// <param name="cacheName">The name of the cache to get.</param>
        /// <returns>A cache instance.</returns>
        ICache GetCache(string cacheName);

        /// <summary>
        /// Gets the default cache for the system.
        /// </summary>
        /// <returns>The default cache.</returns>
        ICache GetDefaultCache();
    }
}